<%--@elvariable id="loginUserId" type="java.lang.String"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>施工人员培训记录添加</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/contractor/staffTrain/add.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">培训班名称:</label>
                    <input id="name" name="name" type="text" class="easyui-textbox" data-options="required:true" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">年度:</label>
                    <input id="year" name="year" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">培训类别:</label>
                    <input id="trainTypeId" name="trainTypeId" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">培训开始日期:</label>
                    <input id="trainStartTime" name="trainStartTime" class="easyui-datebox" data-options="required:true,validType:'startDateCompare[\'#trainEndTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">培训结束日期:</label>
                    <input id="trainEndTime" name="trainEndTime" class="easyui-datebox" data-options="required:true,validType:'endDateCompare[\'#trainStartTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">培训学时:</label>
                    <input id="actualTrainHour" name="actualTrainHour" type="text" class="easyui-numberspinner" data-options="required:true" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">授课人（企内）:</label>
                    <input id="teacherName" name="teacherName" type="text" style="width:240px;">
                    <input id="teacherId" name="teacherId" type="hidden" class="hide">
                </div>
                <div class="form_one">
                    <label class="lable-style">授课人（企外）:</label>
                    <input id="teacherNameOutside" name="teacherNameOutside" type="text" class="easyui-textbox" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否外部培训:</label>
                    <select class="easyui-combobox" id="isTrainOutside" name="isTrainOutside" data-options="required:true" style="width:240px;">
                        <option value="1">是</option>
                        <option value="0" selected="selected">否</option>
                    </select>
                </div>
                <div class="form_one">
                    <label class="lable-style">培训单位:</label>
                    <input id="trainDeptId" name="trainDeptId" type="text" style="width:240px;">
                </div>
                <div class="form_one hide">
                    <label class="lable-style">培训单位:</label>
                    <input id="trainDeptNameOutside" name="trainDeptNameOutside" type="text" data-options="required:true,disabled:true" class="easyui-textbox" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否取证:</label>
                    <select class="easyui-combobox" id="needCertificate" name="needCertificate" data-options="required:true" style="width:240px;">
                        <option value="1">是</option>
                        <option value="0" selected="selected">否</option>
                    </select>
                </div>
                <div class="form_one">
                    <label class="lable-style">培训人数:</label>
                    <input id="trainNum" name="trainNum" type="text" data-options="disabled:true" class="easyui-numberspinner" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">合格人数:</label>
                    <input id="qualifiedNum" name="qualifiedNum" type="text" data-options="disabled:true" class="easyui-numberspinner" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">培训内容:</label>
                    <input id="trainContent" name="trainContent" type="text" class="easyui-textbox"
                           data-options="multiline:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">培训总结:</label>
                    <input id="trainSummary" name="trainSummary" type="text" class="easyui-textbox"
                           data-options="multiline:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">考核方式:</label>
                    <input id="examMode" name="examMode" type="text" class="easyui-textbox"
                           data-options="multiline:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>培训教材/试题</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <accessory:accessorySimple permission="write" packageKey="staff_train" uploadUserId="${loginUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>培训人员信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure">
            <a id="dg1_btn_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg" style="margin:5px;">添加</a>
            <table id="dg1"></table>
        </div>
    </div>
</form>
</body>
</html>
